package org.electrical.dao;

import org.apache.ibatis.annotations.Param;

import java.io.Serializable;
import java.util.List;

public interface CommonDao<T, E extends Serializable> {

    public List<T> getAll();

    public T getById(E id);

    public void add(T t);

    public void delete(E id);

    public void batchDelete(E[] ids);

    public void update(T t);

    public List<T> getConditionList(@Param("condition") T condition);

}
